From f2bef49f8597b9bbc4d89a1df5252026bd64b7ef Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 15 May 2012 19:17:42 +0300 Subject: [PATCH] Fix the changes in revision 107994 for bug #11464. src/xdisp.c (pos_visible_p): Fix last change. --- src/ChangeLog | 4 ++++ src/xdisp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index c15d816c2e5..d8ee9895d87 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2012-05-15 Eli Zaretskii + + * xdisp.c (pos_visible_p): Fix last change. (Bug#11464) + 2012-05-13 Eli Zaretskii * xdisp.c (handle_stop): Don't call get_overlay_strings_1 if we diff --git a/src/xdisp.c b/src/xdisp.c index a2c4589766d..e8253c714e3 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1313,7 +1313,7 @@ pos_visible_p (struct window *w, EMACS_INT charpos, int *x, int *y, visible_p = bottom_y > window_top_y; else if (top_y < it.last_visible_y) visible_p = 1; - if (bottom_y >= it.last_visible_y + if (bottom_y <= it.last_visible_y && it.bidi_p && it.bidi_it.scan_dir == -1 && IT_CHARPOS (it) < charpos) { -- 2.30.2